package com.wft.chapter06.enumtest;

public enum ColorDesc2 implements IColorDesc {
    RED("#d71345") {
        @Override
        public String info() {
            return "red=#d71345";
        }
    },
    YELLOW("#fcf16e") {
        @Override
        public String info() {
            return "yellow=#fcf16e";
        }
    },
    BLUE("#7bbfea") {
        @Override
        public String info() {
            return "blue=#7bbfea";
        }
    };
    private String code;

    ColorDesc2(String code) {
        this.code = code;
    }


    public static void main(String[] args) {
        System.out.println(ColorDesc2.RED.info());
    }
}
